package cn.kgc.bean;

import java.util.ArrayList;
import java.util.List;

public class HouseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HouseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFrnameIsNull() {
            addCriterion("frname is null");
            return (Criteria) this;
        }

        public Criteria andFrnameIsNotNull() {
            addCriterion("frname is not null");
            return (Criteria) this;
        }

        public Criteria andFrnameEqualTo(String value) {
            addCriterion("frname =", value, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameNotEqualTo(String value) {
            addCriterion("frname <>", value, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameGreaterThan(String value) {
            addCriterion("frname >", value, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameGreaterThanOrEqualTo(String value) {
            addCriterion("frname >=", value, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameLessThan(String value) {
            addCriterion("frname <", value, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameLessThanOrEqualTo(String value) {
            addCriterion("frname <=", value, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameLike(String value) {
            addCriterion("frname like", value, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameNotLike(String value) {
            addCriterion("frname not like", value, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameIn(List<String> values) {
            addCriterion("frname in", values, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameNotIn(List<String> values) {
            addCriterion("frname not in", values, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameBetween(String value1, String value2) {
            addCriterion("frname between", value1, value2, "frname");
            return (Criteria) this;
        }

        public Criteria andFrnameNotBetween(String value1, String value2) {
            addCriterion("frname not between", value1, value2, "frname");
            return (Criteria) this;
        }

        public Criteria andFrphoneIsNull() {
            addCriterion("frphone is null");
            return (Criteria) this;
        }

        public Criteria andFrphoneIsNotNull() {
            addCriterion("frphone is not null");
            return (Criteria) this;
        }

        public Criteria andFrphoneEqualTo(String value) {
            addCriterion("frphone =", value, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneNotEqualTo(String value) {
            addCriterion("frphone <>", value, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneGreaterThan(String value) {
            addCriterion("frphone >", value, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneGreaterThanOrEqualTo(String value) {
            addCriterion("frphone >=", value, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneLessThan(String value) {
            addCriterion("frphone <", value, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneLessThanOrEqualTo(String value) {
            addCriterion("frphone <=", value, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneLike(String value) {
            addCriterion("frphone like", value, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneNotLike(String value) {
            addCriterion("frphone not like", value, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneIn(List<String> values) {
            addCriterion("frphone in", values, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneNotIn(List<String> values) {
            addCriterion("frphone not in", values, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneBetween(String value1, String value2) {
            addCriterion("frphone between", value1, value2, "frphone");
            return (Criteria) this;
        }

        public Criteria andFrphoneNotBetween(String value1, String value2) {
            addCriterion("frphone not between", value1, value2, "frphone");
            return (Criteria) this;
        }

        public Criteria andFridcardIsNull() {
            addCriterion("fridcard is null");
            return (Criteria) this;
        }

        public Criteria andFridcardIsNotNull() {
            addCriterion("fridcard is not null");
            return (Criteria) this;
        }

        public Criteria andFridcardEqualTo(String value) {
            addCriterion("fridcard =", value, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardNotEqualTo(String value) {
            addCriterion("fridcard <>", value, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardGreaterThan(String value) {
            addCriterion("fridcard >", value, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardGreaterThanOrEqualTo(String value) {
            addCriterion("fridcard >=", value, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardLessThan(String value) {
            addCriterion("fridcard <", value, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardLessThanOrEqualTo(String value) {
            addCriterion("fridcard <=", value, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardLike(String value) {
            addCriterion("fridcard like", value, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardNotLike(String value) {
            addCriterion("fridcard not like", value, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardIn(List<String> values) {
            addCriterion("fridcard in", values, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardNotIn(List<String> values) {
            addCriterion("fridcard not in", values, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardBetween(String value1, String value2) {
            addCriterion("fridcard between", value1, value2, "fridcard");
            return (Criteria) this;
        }

        public Criteria andFridcardNotBetween(String value1, String value2) {
            addCriterion("fridcard not between", value1, value2, "fridcard");
            return (Criteria) this;
        }

        public Criteria andHousenameIsNull() {
            addCriterion("housename is null");
            return (Criteria) this;
        }

        public Criteria andHousenameIsNotNull() {
            addCriterion("housename is not null");
            return (Criteria) this;
        }

        public Criteria andHousenameEqualTo(String value) {
            addCriterion("housename =", value, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameNotEqualTo(String value) {
            addCriterion("housename <>", value, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameGreaterThan(String value) {
            addCriterion("housename >", value, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameGreaterThanOrEqualTo(String value) {
            addCriterion("housename >=", value, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameLessThan(String value) {
            addCriterion("housename <", value, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameLessThanOrEqualTo(String value) {
            addCriterion("housename <=", value, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameLike(String value) {
            addCriterion("housename like", value, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameNotLike(String value) {
            addCriterion("housename not like", value, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameIn(List<String> values) {
            addCriterion("housename in", values, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameNotIn(List<String> values) {
            addCriterion("housename not in", values, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameBetween(String value1, String value2) {
            addCriterion("housename between", value1, value2, "housename");
            return (Criteria) this;
        }

        public Criteria andHousenameNotBetween(String value1, String value2) {
            addCriterion("housename not between", value1, value2, "housename");
            return (Criteria) this;
        }

        public Criteria andHouseaddrIsNull() {
            addCriterion("houseaddr is null");
            return (Criteria) this;
        }

        public Criteria andHouseaddrIsNotNull() {
            addCriterion("houseaddr is not null");
            return (Criteria) this;
        }

        public Criteria andHouseaddrEqualTo(String value) {
            addCriterion("houseaddr =", value, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrNotEqualTo(String value) {
            addCriterion("houseaddr <>", value, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrGreaterThan(String value) {
            addCriterion("houseaddr >", value, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrGreaterThanOrEqualTo(String value) {
            addCriterion("houseaddr >=", value, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrLessThan(String value) {
            addCriterion("houseaddr <", value, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrLessThanOrEqualTo(String value) {
            addCriterion("houseaddr <=", value, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrLike(String value) {
            addCriterion("houseaddr like", value, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrNotLike(String value) {
            addCriterion("houseaddr not like", value, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrIn(List<String> values) {
            addCriterion("houseaddr in", values, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrNotIn(List<String> values) {
            addCriterion("houseaddr not in", values, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrBetween(String value1, String value2) {
            addCriterion("houseaddr between", value1, value2, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHouseaddrNotBetween(String value1, String value2) {
            addCriterion("houseaddr not between", value1, value2, "houseaddr");
            return (Criteria) this;
        }

        public Criteria andHousenoteIsNull() {
            addCriterion("housenote is null");
            return (Criteria) this;
        }

        public Criteria andHousenoteIsNotNull() {
            addCriterion("housenote is not null");
            return (Criteria) this;
        }

        public Criteria andHousenoteEqualTo(String value) {
            addCriterion("housenote =", value, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteNotEqualTo(String value) {
            addCriterion("housenote <>", value, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteGreaterThan(String value) {
            addCriterion("housenote >", value, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteGreaterThanOrEqualTo(String value) {
            addCriterion("housenote >=", value, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteLessThan(String value) {
            addCriterion("housenote <", value, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteLessThanOrEqualTo(String value) {
            addCriterion("housenote <=", value, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteLike(String value) {
            addCriterion("housenote like", value, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteNotLike(String value) {
            addCriterion("housenote not like", value, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteIn(List<String> values) {
            addCriterion("housenote in", values, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteNotIn(List<String> values) {
            addCriterion("housenote not in", values, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteBetween(String value1, String value2) {
            addCriterion("housenote between", value1, value2, "housenote");
            return (Criteria) this;
        }

        public Criteria andHousenoteNotBetween(String value1, String value2) {
            addCriterion("housenote not between", value1, value2, "housenote");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}